package com.atguigu.guli.service.base.model;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private String id ;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate ;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified ;
}
